package com.metal.gear.core.token;

import com.metal.gear.core.cache.LocalCache;

public class GlobalTokenManager {

    private static volatile TokenManager globalTokenManager = new TokenManager(
            LocalCache.getInstance());

    public static TokenManager getTokenManager() {
        return globalTokenManager;
    }

    public static void setTokenManager(TokenManager tokenManager) {
        globalTokenManager = tokenManager;
    }



    private static volatile TokenManagerV4 globalTokenManagerV4 = new TokenManagerV4(
            LocalCache.getInstance());



    public static TokenManagerV4 getTokenManagerV4() {
        return globalTokenManagerV4;
    }

    public static void setTokenManager(TokenManagerV4 tokenManager) {
        globalTokenManagerV4 = tokenManager;
    }}
